package com.kofigyan.stateprogressbarsample;

import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;

public class UsageCompleteActivity extends UsageBaseActivity {

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        nextBtn.setText("Back");
        stateProgressBar.setAllStatesCompleted(true);
        stateProgressBar.enableAnimationToCurrentState(false);
    }

    @Override
    protected int getLayoutId() {
        return ResourceTable.Layout_ability_usage_complete;
    }

    @Override
    public void onClick(Component component) {
        terminateAbility();
    }
}
